const seq = require("../db/seq");
const { DataTypes } = require("sequelize");
const Goods = require("./goods.model.js");
const Classify = seq.define(
  "classification",
  {
    classify_name: {
      type: DataTypes.STRING,
      allowNull: false,
      comment: "分类名称",
    },
  },
  
);
Classify.sync();
// Classify.sync({force:true});
// Goods.sync();
// Classify.belongsTo(Goods, {
//   foreignKey: "classify_id",
//   targetKey: "classify_id",
//   as: "children",
// });

module.exports = Classify;
